package cn.lingyangwl.agile.infra.module.file.model.rqrs;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;

/**
 * @author shenguangyang
 */
@Getter
@Setter
public class FieConfigBase {
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "业务类型")
    private String bizType;

    @ApiModelProperty(value = "存储桶")
    private String bucketName;

    @ApiModelProperty(value = "允许上传的文件类型(mine-type标准)，为空时不限制类型")
    private String fileTypeLimit;

    @ApiModelProperty(value = "允许上传的文件大小(kb)，为空时不限制大小")
    private Long fileSizeLimit;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "服务器存储文件的路径")
    private String path;

    @ApiModelProperty(value = "状态, 1启用, 0禁用")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String status;

    @ApiModelProperty(value = "备注")
    private String remark;
}
